<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      py:strip="">

  <div class="resource-box">

    <h2 class="resources-title" py:if="title">
      ${title}
      <div class="headerRssLink">
        <a href="/${home_name}/globalannouncements.xml"></a>
      </div>
    </h2>

    <ul py:if="newsitems">
      <li class="timeline_event newtopic ${separator}" py:for="newsitem in newsitems">
        <div>
            <a href="${req.href('..', newsitem.project.env_name)}" title="${newsitem.project.project_name}">
                <img class="ga_icon" src="${newsitem.project.icon_url}" />
            </a>
        </div>
        <div>
          <a href="${req.href('..', newsitem.project.env_name, '/discussion/topic/', newsitem['topic_id'])}" title="${newsitem['subject']}">
            <strong>${newsitem['subject']}</strong>
          </a>
          <div>
              ${fromtimestamp(newsitem['time']).strftime("%d %B %Y")} by
              <span class="author">
                <a class="profilebox-link_" href="#">${format_author(newsitem['author'])}</a>
              </span>
              in
              <a href="${req.href('..', newsitem.project.env_name)}" title="${newsitem.project.project_name}">
                  ${newsitem.project.project_name}
              </a>
          </div>
        </div>
      </li>
      <li class="${separator}">
        <a href="${req.href('..', home_name, 'globalannouncements')}">See all announcements &gt;</a>
      </li>
    </ul>
    <ul py:if="not newsitems">
      <div class="greyBgContainer">
        <div class="greyBgContent" py:if="not news_error">
          No announcements.
        </div>
        <div class="greyBgContent" py:if="news_error">
          ${news_error}
        </div>
      </div>
    </ul>

  </div>

</html>

